package com.wmada.springdemo.filter;

import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
 * @author will.ma
 * @date 2020-2-2
 */
public class LogFilter extends GenericFilter {

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        System.out.println("this is MyFilter,url :" + ((HttpServletRequest) request).getRequestURI());
        chain.doFilter(request, response);
    }

}
